fst_dir=/home/work_nfs8/xlgeng/new_workspace/gxl_ai_utils/eggs/cats_and_dogs/ngram_task/train_ngram/gxl_ngram_zoo/aishell_1_2-3gram/lang_test
fst_dir=/home/work_nfs8/xlgeng/new_workspace/gxl_ai_utils/eggs/cats_and_dogs/ngram_task/train_ngram/gxl_ngram_zoo/wenetspeech_fix-3gram/lang_test
zip_path=/home/work_nfs7/yhdai/workspace/online_sys/wenet/examples/onlinesys/final_stage5.zip
dir=./gxl_wer_zoo/wenetspeech_fix-3gram/test_net
mkdir -p $dir
scale_list=( "0.8" "1.0" "1.2" "1.4" "1.6" "1.8" "2.0" "2.2" "2.4" "2.6" "2.8" "3.0" "3.2" "3.4" "3.6" "3.8" "4.0" "4.2" "4.4" "4.6" "4.8" "5.0" )
for scale in "${scale_list[@]}"; do
{
  echo '耿雪龙： 开始推理, scale = '$scale
temp_dir=$dir/$scale
wav_path=/home/work_nfs8/xlgeng/data/scp_test/test_meeting/wav.scp
text_path=/home/work_nfs8/xlgeng/data/scp_test/test_meeting/text
# mkdir -p $test_dir
./tools/decode.sh --nj 6 \
    --beam 10.0 --lattice_beam 5 --max_active 7000 --blank_skip_thresh 0.98 \
    --ctc_weight 0.5 --rescoring_weight 1.0 --acoustic_scale $scale \
    --fst_path $fst_dir/TLG.fst \
    --dict_path $fst_dir/words.txt \
    "$wav_path" "$text_path" $zip_path $fst_dir/units.txt \
    $temp_dir/${test_set}
echo '耿雪龙： 推理完成, scale = '$scale
tail $temp_dir/${test_set}/wer
}
done
wait